package com.link.base.base.sms.model;

/**
 * 营销短信前端条件解析model类
 * @author 曲元涛
 * @date 2019/4/23 17:19
 */
public class SmsParamTable {
    /**客户标签统计表名*/
    private String tableName;
    /**表连接左连接字段名*/
    private String leftJoinField;
    /**表连接右连接字段名*/
    private String rightJoinField;
    /**where条件操作字段名*/
    private String operateField;
    /**where条件操作符*/
    private String operator;
    /**where条件操作值*/
    private String operateValue;
    /**where条件字段是否是日期*/
    private boolean dateFlag = false;

    public SmsParamTable(String tableName,
                         String leftJoinField,
                         String rightJoinField,
                         String operateField,
                         String operator,
                         String operateValue) {
        this.tableName = tableName;
        this.leftJoinField = leftJoinField;
        this.rightJoinField = rightJoinField;
        this.operateField = operateField;
        this.operator = operator;
        this.operateValue = operateValue;
    }

    public SmsParamTable(String tableName,
                         String leftJoinField,
                         String rightJoinField,
                         String operateField,
                         String operator,
                         String operateValue,
                         boolean dateFlag) {
        this.tableName = tableName;
        this.leftJoinField = leftJoinField;
        this.rightJoinField = rightJoinField;
        this.operateField = operateField;
        this.operator = operator;
        this.operateValue = operateValue;
        this.dateFlag = dateFlag;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getLeftJoinField() {
        return leftJoinField;
    }

    public void setLeftJoinField(String leftJoinField) {
        this.leftJoinField = leftJoinField;
    }

    public String getRightJoinField() {
        return rightJoinField;
    }

    public void setRightJoinField(String rightJoinField) {
        this.rightJoinField = rightJoinField;
    }

    public String getOperateField() {
        return operateField;
    }

    public void setOperateField(String operateField) {
        this.operateField = operateField;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOperateValue() {
        return operateValue;
    }

    public void setOperateValue(String operateValue) {
        this.operateValue = operateValue;
    }

    public boolean isDateFlag() {
        return dateFlag;
    }

    public void setDateFlag(boolean dateFlag) {
        this.dateFlag = dateFlag;
    }

    @Override
    public String toString() {
        return "SmsParamTable{"
                + "tableName='" + tableName + '\''
                + ", leftJoinField='" + leftJoinField + '\''
                + ", rightJoinField='" + rightJoinField + '\''
                + ", operateField='" + operateField + '\''
                + ", operator='" + operator + '\''
                + ", operateValue='" + operateValue + '\''
                + ", dateFlag='" + dateFlag + '\''
                + '}';
    }
}
